;***********************************************************************
; proc_system_idle_64.asm
;
; The Railgun 0.4a system idle thread code.
; Should be assigned to process 0, thread 0.
; The system idle thread simply performs a halt-loop and is
; fully reentrant.
;
; Author: Aidan Goddard 2/7/13
;***********************************************************************

global proc_system_idle

section .text

align 16

proc_system_idle:

	;cli

	;str		rax
	;sub 	rax, 0x40
	;shr		rax, 4

	;mov 	rbx, 0x1000b8000 + 160*24
	;lea 	rsi, [rbx + rax * 2]

	;mov 	cl, '0'
	;add		rcx, rax

	;mov 	[rsi], cl


	;sti

loop:
	hlt
	jmp		loop

